package com.me.seckill.controller;

import com.crossoverjie.distributed.annotation.SpringControllerLimit;
import com.me.seckill.pojo.Stock;
import com.me.seckill.service.OrderService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * controller
 */
@Controller
public class SeckillController {

    private static final Logger logger = LoggerFactory.getLogger(SeckillController.class);


    @Autowired
    private OrderService orderService;

    @RequestMapping("/health")
    @ResponseBody
    public String health() {
        logger.info("heath");
        return "OK";
    }

}
